home *** CD-ROM | disk | FTP | other *** search
-
-
- THELP
-
- THELP is a very simple method of designing and calling your own custom
- help screens from within Telix: either with a function key or by
- running them as a script file. Included are two sample programs with
- matching help screens and templates. They are basically the same
- program but I wanted to demo two options and show what variables
- need adjustment when changing the size of the help screen.
-
- File list:
-
- READ.ME What you are reading now...
- THELP.SLT SALT program for showing full-screen help screen
- THELP.SLC Compiled THELP.SLT
- CIS.HLP Sample Compuserve help screen for THELP
- BLANK.HLP Template for creating full-screen help screens.
-
- THELP2.SLT SALT program for showing half-screen help screen
- THELP2.SLC Compiled THELP2.SLT
- CIS2.HLP Sample Compuserve help screen for THELP2
- BLANK2.HLP Template for creating half-screen help screens.
-
- First, try out the two help screens included. Move them to your Telix
- directory (they must be in the Telix directory unless you include the
- full path name in the program.) Press Alt-G to run a script file
- and type in THELP. At the bottom of the help screen you will see a
- message saying "Esc to Restore Screen or Any Key for Terminal Mode".
- What this means is that Esc will restore what was on the screen before
- and return you to terminal mode. Any Other Key will return you to
- terminal mode with the help screen intact. The 2nd option is more
- useful when you are NOT using a full-help screen and you want to be
- able to read the help screen as you type in a command in terminal
- mode. Since your cursor spends most of the time at the bottom of
- the screen in terminal mode, a half-screen help screen at the top
- works well in many situations. Press Alt-G and type THELP2 to
- check out the half-screen help screen.
-
- To run a one of these programs using a function key, press Alt-K in
- Telix mode which will bring up the keyboard options. Choose edit a
- key and press the key you want to use. For example, choose F1 and
- then type @THELP. (Don't type the period, though.) When you return
- to terminal mode, F1 should call THELP.
-
- To design your own help screen, you can either use one of the
- templates or start from scratch. Use an ASCII text editor, keep
- lines from being longer than 80 characters and the number of lines
- at 24 or less.
-
- If you choose to use one of the templates, you will need to change
- the variable fname[] to the name of your help file. It is better
- to use the full pathname for this so that you can access it is
- you are not in the telix directory.
-
- If you want to change the number of lines or the postion, you will
- need to dig a little deeper into the code. The programs have
- more detailed explanation but the following is a complete list of
- variables that you need or want to customize. Especially check out
- THELP2 because it points out which variables had to be changed from
- THELP.
-
- str buf[size]; array to store screen in - size should be
- (number of lines) * 160 (includes char and
- attribute}
-
- int lines; // number of lines of text in file
- int color; // change this to suit your tastes
- str fname[67] = "cis2.hlp"; // name of your help screen file
- int c; // column position to start
- int r; // row position to start
-
-
- If you have never used SALT, remember that after you change any
- part of the SALT programs, you will need to recompile the program.
- Syntax is: CS prognam
- Example: CS THELP will compile and create THELP.SLC
-
-
- ----------------------------- Notes -------------------------------
-
-
- These script files are just some ideas that might be helpful to
- someone else in using Telix and/or learning SALT. SALT is an
- excellent language and worth learning...it is a good starting
- point for learning C, among other things. These script files
- have been tested using Telix 3.15.
-
- Larry Dresser
-
- These programs are not guaranteed to work, etc.., etc.., more legalese,
- ... they are just figments of your imagination.
-